@extends('admin.layout.layout')
@section('content')   
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">订单修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>                                
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">   
                      @if (count($errors) > 0)
                            <div class="alert alert-danger">
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
<form role="form"  action="{{url('/admin/order/update')}}" method="post" enctype="multipart/form-data">    
                <div class="form-group">
                    <label>订单号</label>
                    <input class="form-control" type="text" disabled="disabled" name="adas" value="{{ $res->id }}">
                </div>
                 
                 <div class="form-group">
                    <label>顾客id</label>
                    <input class="form-control" type="text" disabled="disabled" name="uid" value="{{  $res->uid }}">
                </div>
                 <div class="form-group">
                    <label>收货地址</label>
                    <input class="form-control" type="text" name="address" value="{{ $res->address }}">
                </div>
                <div class="form-group">
                    <label>订货日期</label>
                    <input class="form-control" type="text" name="itime" value="{{ $res->itime }}">
                </div>
                <div class="form-group">
                    <label>预计到达日期</label>
                    <input class="form-control" type="text" name="stime" value="{{ $res->stime }}">
                </div>
                 <div class="form-group">
                    <label>运输方式</label>
                    <input class="form-control" type="text" name="send" value="{{ $res->send }}">
                </div> 
                <div class="form-group">
                    <label>付款方式</label>
                    <input class="form-control" type="text" name="payment" value="{{ $res->payment }}">
                </div>
                <input type="hidden" name="id" value="{{  $res->id }}">
                <input type="hidden" name="uid" value="{{  $res->uid }}">
                {{csrf_field()}}
                <button  class="btn btn-primary" type="submit">修改订单</button>
</form>   
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
@endsection
